<?php /* Smarty version 2.6.13, created on 2011-10-20 21:43:08
         compiled from position.tpl */ ?>
<div class="wrap">
	<div id='ajaxResponse' class="ajaxResponse"></div>
	<h2>Change Position of "<?php echo $this->_tpl_vars['THECAT']->cat_name; ?>
"</h2>
	<form name="editpage" id="editpage" method="post" action="?mod=manage&sub1=category">
		<input type="hidden" id="act" name="act" value="change_position"/>
		<input type="hidden" id="cat_id" name="cat_id" value="<?php echo $_GET['id']; ?>
"/>
        <input type="hidden" id="cat_parent" name="cat_parent" value="<?php echo $_GET['catid']; ?>
"/>
        <input type="hidden" id="position" name="position" value="<?php echo $this->_tpl_vars['THECAT']->cat_position; ?>
"/>
				<div class="box">
					<div class="box-content">
						<div class="row">
                            <input type="radio" name="type_change" value="first" />First
                        </div>	
                        <div class="row">
                            <input type="radio" name="type_change" value="after" />After: 
                            <select name="position_id">
                            	<?php $_from = $this->_tpl_vars['CATLEVEL']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['cat']['iteration']++;
?>
                                	<option value="<?php echo $this->_tpl_vars['item']->cat_position; ?>
"><?php echo $this->_tpl_vars['item']->cat_name; ?>
</option>
                                 <?php endforeach; endif; unset($_from); ?>   
                           </select> 
                        </div>
                        <div class="row">
                            <input type="radio" name="type_change" value="last" />Last
                        </div>
					</div>
				</div>
	<p class="submit" align = "right">
		<input type="image" name="submit" value="Save" />
	</p>
	</form>
</div>